package com.gin.danbooru.enums

/**
 * @author BX-Gin
 * @from 2024/2/27 11:23
 */
enum class Rating(val short: String) {

    Sensitive("s"),
    General("g"),
    Explicit("e"),
    Questionable("q"),


    ;

    companion object {
        @JvmStatic
        fun find(s: String): Rating = entries.first { it.short == s || it.name == s }
    }
}